<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__CSS__/bootstrap.min.css">
	<script src="__JS__/jquery.js"></script>
	<script src="__JS__/bootstrap.min.js"></script>
</head>
<body>
	{include file="public/header" /}
	<!-- <a href="{:url('Index/index/hello',['name'=>'Mrli'])}">Mr li</a> -->
	<div class="container">
		<div class="table-responsive">
		  <table class="table">
		    <caption>列表 <a href="{:url('Index/add')}">增加</a></caption>
		    <thead>
			    <tr>
			        <th>id</th>
			        <th>题目</th>
			        <th>内容</th>
			        <th>时间</th>
			        <th>操作</th>
			    </tr>
		    </thead>
		    <tbody>
		    	{foreach $list as $vo} 
			    <tr>
			        <td>{$vo.Id}</td>
			        <td>{$vo.title}</td>
			        <td>{$vo.content}</td>
			        <td>{$vo.time}</td>
			        <td>
			        	<a href="{:url('index/del',['id'=>$vo.Id])}" onclick="return confirm('是否删除')">删除</a>
						<a href="{:url('index/edit',['id'=>$vo.Id])}">修改</a>
			        </td>
			    </tr>
			    
				{/foreach}
		    </tbody>
		  </table>
		</div>
	</div>

</body>
</html>